<?
// This document is part of the Simple PHP RPG Test Documents Division. This documents purpose is to test character generation variables during development.
// This particular document shows chracter generation schemes.

// Define sample character classes.
$char = array("Dwarf", "Elf", "Human", "Orc");

// Break out the random number generator and echo its result for testing purposes.
$rand = rand(0,3);
echo "$rand <br /><br />";

// Start with the if statements.
if ($rand == "0") {
	echo $char[0];
} elseif($rand == "1") {
	echo $char[1];
	} elseif($rand =="2") {
		echo $char[2];
		} elseif($rand == "3") {
		echo $char[3];
		}else {
		echo "Script error!";
		}
?>